package com.huaxingbankas.modules.model;

import java.util.Date;

import javax.persistence.Cacheable;
//import javax.persistence.Cache;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Entity
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Users {
	//private static final long serialVersionUID = 1L;
	@Id
	private int id;
	private String username;
	private String password;
	private Integer enabled;
	private String name;
	private String email;
	private String qq;
	private String msn;
	private Date expiredate;
	private String comments;
	
	public Users(String username, String password,Integer enabled,String name,String email,String qq,String msn,Date expiredate,String comments) {
		this.username = username;
		this.password = password;
		this.enabled  = enabled;
		this.name     = name;
		this.email    = email;
		this.qq       = qq;
		this.msn	  = msn;
		this.expiredate= expiredate;
		this.comments = comments;
	}

	public Users() {
		// TODO Auto-generated constructor stub
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getEnabled() {
		return enabled;
	}
	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public Date getExpiredate() {
		return expiredate;
	}
	public void setExpiredate(Date expiredate) {
		this.expiredate = expiredate;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	

}
